home *** CD-ROM | disk | FTP | other *** search
/ Aminet 38 / Aminet 38 (2000)(Schatztruhe)[!][Aug 2000].iso / Aminet / dev / c / CLib-SDI.lha / CLib-SDI / libsource / makefile.gcc < prev    next >
Encoding:
Makefile  |  2000-06-25  |  510 b   |  16 lines

  1. CFLAGS = -O2 -c -I ../include/ -D __NOLIBBASE__
  2. LFLAGS = -noixemul -nostartfiles -s
  3.  
  4. ODIR = T:    # the directory, where object files are stored
  5. DDIR = ../libs/    # the directory, where destination library is stored
  6.  
  7. $(DDIR)example.library: $(ODIR)libinitgcc.o $(ODIR)examplefuncsgcc.o
  8.     gcc $(LFLAGS) -o $@ $(ODIR)libinitgcc.o $(ODIR)examplefuncsgcc.o
  9.     
  10. $(ODIR)libinitgcc.o: libinfo.h libinit.c
  11.     gcc $(CFLAGS) -o $@ libinit.c
  12.  
  13. $(ODIR)examplefuncsgcc.o: libinfo.h examplefuncs.c
  14.     gcc $(CFLAGS) -o $@ examplefuncs.c
  15.  
  16.